{{> @macro/plugins/view/view-import.hbs page=page}}
{{#unless page.psViewLayoutPanel.useDefaultLayout}}
{{importPlugin 'panel' page.psViewLayoutPanel}}
{{/unless}}
{{#if ctrls}}
{{#each ctrls as | ctrl |}}
{{#eq ctrl.controlType 'APPMENU'}}
import {{ctrl.codeName}}Menu from '@widgets/app/{{spinalCase ctrl.codeName}}-menu/{{spinalCase ctrl.codeName}}-menu.vue';
{{/eq}}
{{#eq ctrl.controlType 'DASHBOARD'}}
{{#if appEntity}}
import {{ctrl.codeName}}Dashboard from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-dashboard/{{spinalCase ctrl.codeName}}-dashboard.vue';
{{else}}
import {{ctrl.codeName}}Dashboard from '@widgets/app/{{spinalCase ctrl.codeName}}-dashboard/{{spinalCase ctrl.codeName}}-dashboard.vue';
{{/if}}
{{/eq}}
{{#if appEntity}}
{{#eq ctrl.controlType 'SEARCHFORM'}}
import {{ctrl.codeName}}SearchForm from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-searchform/{{spinalCase ctrl.codeName}}-searchform.vue';
{{/eq}}
{{#eq ctrl.controlType 'CALENDAR'}}
import {{ctrl.codeName}}Calendar from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-calendar/{{spinalCase ctrl.codeName}}-calendar.vue';
{{/eq}}
{{!-- {{#eq ctrl.controlType 'CALENDAREXPBAR'}}
import {{ctrl.codeName}}CalendarExpBar from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-calendar-exp-bar/{{spinalCase ctrl.codeName}}-calendar-exp-bar.vue';
{{/eq}} --}}
{{#eq ctrl.controlType 'CHART'}}
import {{ctrl.codeName}}Chart from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-chart/{{spinalCase ctrl.codeName}}-chart.vue';
{{/eq}}
{{!-- {{#eq ctrl.controlType 'DATAVIEW'}}
import {{ctrl.codeName}}DataView from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-data-view/{{spinalCase ctrl.codeName}}-data-view.vue';
{{/eq}} --}}
{{#eq ctrl.controlType 'FORM'}}
import {{ctrl.codeName}}Form from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-form/{{spinalCase ctrl.codeName}}-form.vue';
{{/eq}}
{{#eq ctrl.controlType 'DRBAR'}}
import {{ctrl.codeName}}Drbar from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-drbar/{{spinalCase ctrl.codeName}}-drbar.vue';
{{/eq}}
{{#eq ctrl.controlType 'DRTAB'}}
import {{ctrl.codeName}}Drtab from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-drtab/{{spinalCase ctrl.codeName}}-drtab.vue';
{{/eq}}
{{#eq ctrl.controlType 'LISTEXPBAR'}}
import {{ctrl.codeName}}ListExpBar from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-list-exp-bar/{{spinalCase ctrl.codeName}}-list-exp-bar.vue';

{{/eq}}
{{#eq ctrl.controlType 'LIST'}}
import {{ctrl.codeName}}List from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-list/{{spinalCase ctrl.codeName}}-list.vue';
{{/eq}}
{{#eq ctrl.controlType 'MULTIEDITVIEWPANEL'}}
import {{ctrl.codeName}}MultiEditViewPanel from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-multi-editview-panel/{{spinalCase ctrl.codeName}}-multi-editview-panel.vue';
{{/eq}}
{{#eq ctrl.controlType 'PICKUPVIEWPANEL'}}
import {{ctrl.codeName}}PickupViewPanel from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-pickup-view-panel/{{spinalCase ctrl.codeName}}-pickup-view-panel.vue';
{{/eq}}
{{#eq ctrl.controlType 'PANEL'}}
import {{ctrl.codeName}}Panel from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-panel/{{spinalCase ctrl.codeName}}-panel.vue';
{{/eq}}
{{#eq ctrl.controlType 'TREEVIEW'}}
import {{ctrl.codeName}}Tree from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-tree/{{spinalCase ctrl.codeName}}-tree.vue';
{{/eq}}
{{#eq ctrl.controlType 'TABEXPPANEL'}}
import {{ctrl.codeName}}TabExpPanel from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-tab-exp-panel/{{spinalCase ctrl.codeName}}-tab-exp-panel.vue';
{{/eq}}

{{#eq ctrl.controlType 'WIZARDPANEL'}}
import {{ctrl.codeName}}WizardPanel from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase ctrl.codeName}}-wizard-panel/{{spinalCase ctrl.codeName}}-wizard-panel.vue';
{{/eq}}
{{!-- todo --}}
{{!-- {{#eq ctrl.controlType 'PORTLET'}}
import {{ctrl.codeName}}Portlet from '@widgets/{{spinalCase ctrl.psAppDataEntity.codeName}}/{{spinalCase ctrl.codeName}}-portlet/{{spinalCase ctrl.codeName}}-portlet.vue'; --}}
{{!-- {{/eq}} --}}
{{#eq ctrl.controlType 'MOBMDCTRL'}}
import {{codeName}}MDCtrl from '@widgets/{{spinalCase appEntity.codeName}}/{{spinalCase codeName}}-mob-md-ctrl/{{spinalCase codeName}}-mob-md-ctrl.vue';
{{/eq}}
{{/if}}
{{/each}}
{{/if}}
